const mongoose = require("mongoose");
//收藏信息数据库
const schema = new mongoose.Schema(
  {
    collectId: { type: String },
    collectType: { type: String },
    userId: { type: mongoose.SchemaTypes.ObjectId, ref: "User" },

    //mongoose.Schema.Types.ObjectId
  },
  {
    timestamps: true,
  }
);

module.exports = mongoose.model("Collect", schema);
